package com.chinairi.mall.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chinairi.common.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author gsl
 * @since 2020-10-29
 */
@TableName("ORDER_SERVICE_PURCHASE")
public class OrderServicePurchase extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 采购服务订单编号
     */
    @TableId("OSP_ID")
    private String ospId;

    /**
     * 采购服务订单名称
     */
    @TableField("OSP_NAME")
    private String ospName;

    /**
     * 商品订单编号
     */
    @TableField("ORDER_ID")
    private String orderId;

    /**
     * 店铺ID
     */
    @TableField("OSP_SHOP_ID")
    private String ospShopId;

    /**
     * 订单状态
     */
    @TableField("OSP_STATE")
    private String ospState;

    /**
     * 订单状态编码值
     */
    @TableField(exist = false)
    private String ospStateLabel;

    /**
     * 服务类型
     */
    @TableField("OSP_PURCHASE_TYPE")
    private String ospPurchaseType;

    /**
     * 预计订单服务金额
     */
    @TableField("OSP_ESTIMATE_MONEY")
    private BigDecimal ospEstimateMoney;

    /**
     * 订单服务金额
     */
    @TableField("OSP_MONEY")
    private BigDecimal ospMoney;

    /**
     * 应收服务金额
     */
    @TableField("OSP_COLLECT_SERVICE_MONEY")
    private BigDecimal ospCollectServiceMoney;

    /**
     * 应付服务金额
     */
    @TableField("OSP_PAY_SERVICE_MONEY")
    private BigDecimal ospPayServiceMoney;

    /**
     * 实收服务金额
     */
    @TableField("OSP_COLLECT_SERVICE_MONEY_REAL")
    private BigDecimal ospCollectServiceMoneyReal;

    /**
     * 实付服务金额
     */
    @TableField("OSP_PAY_SERVICE_MONEY_REAL")
    private BigDecimal ospPayServiceMoneyReal;

    /**
     * 采购单位
     */
    @TableField("OSP_PURCHASE_UNIT")
    private String ospPurchaseUnit;

    /**
     * 采购单位地址
     */
    @TableField("OSP_PURCHASE_UNIT_ADDRESS")
    private String ospPurchaseUnitAddress;

    /**
     * 采购联系人
     */
    @TableField("OSP_CONTACTS_MAN")
    private String ospContactsMan;

    /**
     * 联系方式
     */
    @TableField("OSP_CONTACTS_MAN_PHONE")
    private String ospContactsManPhone;

    /**
     * 下单用户ID
     */
    @TableField("CREATE_USER_ID")
    private String createUserId;

    /**
     * 订单创建人
     */
    @TableField("CREATE_USER")
    private String createUser;

    /**
     * 联系方式
     */
    @TableField("CREATE_USER_PHONE")
    private String createUserPhone;

    /**
     * 订单创建时间
     */
    @TableField("CREATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField("UPDATE_USER")
    private String updateUser;

    /**
     * 修改时间
     */
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 审批人
     */
    @TableField("APPROVE_USER")
    private String approveUser;

    /**
     * 审批时间
     */
    @TableField("APPROVE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date approveTime;

    /**
     * 审核状态
     */
    @TableField("APPROVE_STATUS")
    private String approveStatus;

    /**
     * 机构代码
     */
    @TableField("ORG_CODE")
    private String orgCode;

    public String getOspId() {
        return ospId;
    }

    public void setOspId(String ospId) {
        this.ospId = ospId;
    }
    public String getOspName() {
        return ospName;
    }

    public void setOspName(String ospName) {
        this.ospName = ospName;
    }
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    public String getOspShopId() {
        return ospShopId;
    }

    public void setOspShopId(String ospShopId) {
        this.ospShopId = ospShopId;
    }
    public String getOspState() {
        return ospState;
    }

    public void setOspState(String ospState) {
        this.ospState = ospState;
    }
    public String getOspPurchaseType() {
        return ospPurchaseType;
    }

    public void setOspPurchaseType(String ospPurchaseType) {
        this.ospPurchaseType = ospPurchaseType;
    }
    public BigDecimal getOspEstimateMoney() {
        return ospEstimateMoney;
    }

    public void setOspEstimateMoney(BigDecimal ospEstimateMoney) {
        this.ospEstimateMoney = ospEstimateMoney;
    }
    public BigDecimal getOspMoney() {
        return ospMoney;
    }

    public String getOspStateLabel() {
        return ospStateLabel;
    }

    public void setOspStateLabel(String ospStateLabel) {
        this.ospStateLabel = ospStateLabel;
    }

    public void setOspMoney(BigDecimal ospMoney) {
        this.ospMoney = ospMoney;
    }
    public BigDecimal getOspCollectServiceMoney() {
        return ospCollectServiceMoney;
    }

    public void setOspCollectServiceMoney(BigDecimal ospCollectServiceMoney) {
        this.ospCollectServiceMoney = ospCollectServiceMoney;
    }
    public BigDecimal getOspPayServiceMoney() {
        return ospPayServiceMoney;
    }

    public void setOspPayServiceMoney(BigDecimal ospPayServiceMoney) {
        this.ospPayServiceMoney = ospPayServiceMoney;
    }
    public BigDecimal getOspCollectServiceMoneyReal() {
        return ospCollectServiceMoneyReal;
    }

    public void setOspCollectServiceMoneyReal(BigDecimal ospCollectServiceMoneyReal) {
        this.ospCollectServiceMoneyReal = ospCollectServiceMoneyReal;
    }
    public BigDecimal getOspPayServiceMoneyReal() {
        return ospPayServiceMoneyReal;
    }

    public void setOspPayServiceMoneyReal(BigDecimal ospPayServiceMoneyReal) {
        this.ospPayServiceMoneyReal = ospPayServiceMoneyReal;
    }
    public String getOspPurchaseUnit() {
        return ospPurchaseUnit;
    }

    public void setOspPurchaseUnit(String ospPurchaseUnit) {
        this.ospPurchaseUnit = ospPurchaseUnit;
    }
    public String getOspPurchaseUnitAddress() {
        return ospPurchaseUnitAddress;
    }

    public void setOspPurchaseUnitAddress(String ospPurchaseUnitAddress) {
        this.ospPurchaseUnitAddress = ospPurchaseUnitAddress;
    }
    public String getOspContactsMan() {
        return ospContactsMan;
    }

    public void setOspContactsMan(String ospContactsMan) {
        this.ospContactsMan = ospContactsMan;
    }
    public String getOspContactsManPhone() {
        return ospContactsManPhone;
    }

    public void setOspContactsManPhone(String ospContactsManPhone) {
        this.ospContactsManPhone = ospContactsManPhone;
    }
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public String getCreateUserPhone() {
        return createUserPhone;
    }

    public void setCreateUserPhone(String createUserPhone) {
        this.createUserPhone = createUserPhone;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getApproveUser() {
        return approveUser;
    }

    public void setApproveUser(String approveUser) {
        this.approveUser = approveUser;
    }
    public Date getApproveTime() {
        return approveTime;
    }

    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }
    public String getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(String approveStatus) {
        this.approveStatus = approveStatus;
    }
    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    @Override
    public String toString() {
        return "OrderServicePurchase{" +
                "ospId='" + ospId + '\'' +
                ", ospName='" + ospName + '\'' +
                ", orderId='" + orderId + '\'' +
                ", ospShopId='" + ospShopId + '\'' +
                ", ospState='" + ospState + '\'' +
                ", ospStateLabel='" + ospStateLabel + '\'' +
                ", ospPurchaseType='" + ospPurchaseType + '\'' +
                ", ospEstimateMoney=" + ospEstimateMoney +
                ", ospMoney=" + ospMoney +
                ", ospCollectServiceMoney=" + ospCollectServiceMoney +
                ", ospPayServiceMoney=" + ospPayServiceMoney +
                ", ospCollectServiceMoneyReal=" + ospCollectServiceMoneyReal +
                ", ospPayServiceMoneyReal=" + ospPayServiceMoneyReal +
                ", ospPurchaseUnit='" + ospPurchaseUnit + '\'' +
                ", ospPurchaseUnitAddress='" + ospPurchaseUnitAddress + '\'' +
                ", ospContactsMan='" + ospContactsMan + '\'' +
                ", ospContactsManPhone='" + ospContactsManPhone + '\'' +
                ", createUserId='" + createUserId + '\'' +
                ", createUser='" + createUser + '\'' +
                ", createUserPhone='" + createUserPhone + '\'' +
                ", createTime=" + createTime +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime=" + updateTime +
                ", approveUser='" + approveUser + '\'' +
                ", approveTime=" + approveTime +
                ", approveStatus='" + approveStatus + '\'' +
                ", orgCode='" + orgCode + '\'' +
                '}';
    }
}
